use sea_orm_migration::prelude::*;

mod m20240101_000001_create_languages_table;
mod m20240101_000002_create_categories_table;
mod m20240101_000003_create_category_translations_table;
mod m20240101_000004_create_brands_table;
mod m20240101_000005_create_brand_translations_table;
mod m20240101_000006_create_users_table;
mod m20240101_000007_create_articles_table;
mod m20240101_000008_create_article_translations_table;
mod m20240101_000009_create_products_table;
mod m20240101_000010_create_product_translations_table;

pub use m20240101_000001_create_languages_table::Migration as M20240101_000001CreateLanguagesTable;
pub use m20240101_000002_create_categories_table::Migration as M20240101_000002CreateCategoriesTable;
pub use m20240101_000003_create_category_translations_table::Migration as M20240101_000003CreateCategoryTranslationsTable;
pub use m20240101_000004_create_brands_table::Migration as M20240101_000004CreateBrandsTable;
pub use m20240101_000005_create_brand_translations_table::Migration as M20240101_000005CreateBrandTranslationsTable;
pub use m20240101_000006_create_users_table::Migration as M20240101_000006CreateUsersTable;
pub use m20240101_000007_create_articles_table::Migration as M20240101_000007CreateArticlesTable;
pub use m20240101_000008_create_article_translations_table::Migration as M20240101_000008CreateArticleTranslationsTable;
pub use m20240101_000009_create_products_table::Migration as M20240101_000009CreateProductsTable;
pub use m20240101_000010_create_product_translations_table::Migration as M20240101_000010CreateProductTranslationsTable;

// Use the CLI to run migrations instead of this function
// This function is kept for compatibility but may not work with current SeaORM version
pub async fn run_migrations(_db: &sea_orm::DatabaseConnection) -> Result<(), sea_orm_migration::DbErr> {
    // In a real scenario, you would use sea-orm-cli to run migrations
    // For now, we'll just return Ok
    Ok(())
}